﻿using IMES.Common.Dtos;
using MediatR;

namespace GoldIngot.API.Application.Commands.SigningWorkCommand
{
    public class SigningWorkCreateCommand:IRequest<Result>
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int SigningId { get; set; }
        /// <summary>
        /// 工单
        /// </summary>
        public int WorkSheetId { get; set; }

        /// <summary>
        /// 报工数
        /// </summary>
        public int SigningNum { get; set; }
        /// <summary>
        /// 生产人员
        /// </summary>
        public string? ProduceName { get; set; }
        /// <summary>
        /// 工序状态
        /// </summary>
        public int ProcessStatus { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string? UnitName { get; set; }
        /// <summary>
        /// 良品数
        /// </summary>
        public int GoodNum { get; set; }
        /// <summary>
        /// 不良品
        /// </summary>
        public int BadNum { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? DateStart { get; set; } = DateTime.Now;
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? DateEnd { get; set; } = DateTime.Now;
        /// <summary>
        /// 报工时长（小时）
        /// </summary>
        public int SigningTime { get; set; }
        /// <summary>
        /// 报工时长（分钟）
        /// </summary>
        public int SigningMin { get; set; }
        /// <summary>
        /// 标准效率
        /// </summary>
        public string? Standard { get; set; }
        /// <summary>
        /// 实际效率
        /// </summary>
        public string? Actual { get; set; }
        /// <summary>
        /// 计价方式
        /// </summary>
        public int PricingType { get; set; }
        /// <summary>
        /// 工资单价
        /// </summary>
        public decimal? WagesPrice { get; set; }
        /// <summary>
        /// 应奖金额
        /// </summary>
        public decimal? RewardMoney { get; set; }
        /// <summary>
        /// 应罚金额
        /// </summary>
        public decimal? Penalty { get; set; }
    }
}
